package com.chwn.harulib.util;

import com.chwn.harulib.BuildConfig;
import com.orhanobut.logger.Logger;

/**
 * Created by Myshikin on 2017/3/14.
 * 统一日志打印
 */
public class LogUtil {

    public static void v(String message){
        Logger.e("-----------" + BuildConfig.LOG_DEBUG);
        if (BuildConfig.LOG_DEBUG) {
            Logger.v(message);
        }
    }

    public static void i(String message){
        if (BuildConfig.LOG_DEBUG) {
            Logger.i(message);
        }
    }

    public static void w(String message){
        if (BuildConfig.LOG_DEBUG) {
            Logger.w(message);
        }
    }

    public static void e(String message){
        Logger.e("-----------" + BuildConfig.LOG_DEBUG);
        if (BuildConfig.LOG_DEBUG) {
            Logger.e(message);
        }
    }
}
